package com.czk.model.responsebilitychain.spring;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 后面加入而不侵犯代码
 *
 * @Author:ChenZhangKun
 * @Date: 2021/11/26 10:31
 */
@Component
@Order(0)
public class AuthCheck extends AbstractHandler {
    @Override
    public boolean doFilter(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("权限校验");
        return true;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }
}
